home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / Video.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  23.3 KB  |  494 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Video.a
  3. ;
  4. ;    Contains:    Video Driver Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  21. __VIDEO__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27. ;        include 'Types.a'                                            ;
  28. ;            include 'ConditionalMacros.a'                            ;
  29. ;        include 'MixedMode.a'                                        ;
  30. ;        include 'QuickdrawText.a'                                    ;
  31.  
  32. mBaseOffset                        EQU        1                    ;Id of mBaseOffset.
  33. mRowBytes                        EQU        2                    ;Video sResource parameter Id's 
  34. mBounds                            EQU        3                    ;Video sResource parameter Id's 
  35. mVersion                        EQU        4                    ;Video sResource parameter Id's 
  36. mHRes                            EQU        5                    ;Video sResource parameter Id's 
  37. mVRes                            EQU        6                    ;Video sResource parameter Id's 
  38. mPixelType                        EQU        7                    ;Video sResource parameter Id's 
  39. mPixelSize                        EQU        8                    ;Video sResource parameter Id's 
  40. mCmpCount                        EQU        9                    ;Video sResource parameter Id's 
  41. mCmpSize                        EQU        10                    ;Video sResource parameter Id's 
  42. mPlaneBytes                        EQU        11                    ;Video sResource parameter Id's 
  43. mVertRefRate                    EQU        14                    ;Video sResource parameter Id's 
  44. mVidParams                        EQU        1                    ;Video parameter block id.
  45. mTable                            EQU        2                    ;Offset to the table.
  46. mPageCnt                        EQU        3                    ;Number of pages
  47. mDevType                        EQU        4                    ;Device Type
  48. oneBitMode                        EQU        128                    ;Id of OneBitMode Parameter list.
  49. twoBitMode                        EQU        129                    ;Id of TwoBitMode Parameter list.
  50. fourBitMode                        EQU        130                    ;Id of FourBitMode Parameter list.
  51. eightBitMode                    EQU        131                    ;Id of EightBitMode Parameter list.
  52.  
  53. sixteenBitMode                    EQU        132                    ;Id of SixteenBitMode Parameter list.
  54. thirtyTwoBitMode                EQU        133                    ;Id of ThirtyTwoBitMode Parameter list.
  55. firstVidMode                    EQU        128                    ;The new, better way to do the above. 
  56. secondVidMode                    EQU        129                    ; QuickDraw only supports six video 
  57. thirdVidMode                    EQU        130                    ; at this time.      
  58. fourthVidMode                    EQU        131
  59. fifthVidMode                    EQU        132
  60. sixthVidMode                    EQU        133
  61. spGammaDir                        EQU        64
  62. spVidNamesDir                    EQU        65
  63.  
  64. ; csTimingFormat values in VDTimingInfo 
  65. ; look in the declaration rom for timing info 
  66. kDeclROMtables                    EQU        'decl'
  67.  
  68. ; Timing mode constants for Display Manager MultiMode support
  69. ;    Corresponding    .h equates are in Video.h
  70. ;                    .a equates are in Video.a
  71. ;                    .r equates are in DepVideoEqu.r
  72. ;    
  73. ;    The first enum is the old names (for compatibility).
  74. ;    The second enum is the new names.
  75. ;
  76. timingApple12                    EQU        130                    ;  512x384 (60 Hz) Rubik timing.
  77. timingApple12x                    EQU        135                    ;  560x384 (60 Hz) Rubik-560 timing.
  78. timingApple13                    EQU        140                    ;  640x480 (67 Hz) HR timing.
  79. timingApple13x                    EQU        145                    ;  640x400 (67 Hz) HR-400 timing.
  80. timingAppleVGA                    EQU        150                    ;  640x480  (60 Hz) VGA timing.
  81. timingApple15                    EQU        160                    ;  640x870 (75 Hz) FPD timing.
  82. timingApple15x                    EQU        165                    ;  640x818 (75 Hz) FPD-818 timing.
  83. timingApple16                    EQU        170                    ;  832x624 (75 Hz) GoldFish timing.
  84. timingAppleSVGA                    EQU        180                    ;  800x600  (56 Hz) SVGA timing.
  85. timingApple1Ka                    EQU        190                    ; 1024x768 (60 Hz) VESA 1K-60Hz timing.
  86. timingApple1Kb                    EQU        200                    ; 1024x768 (70 Hz) VESA 1K-70Hz timing.
  87. timingApple19                    EQU        210                    ; 1024x768  (75 Hz) Apple 19" RGB.
  88. timingApple21                    EQU        220                    ; 1152x870  (75 Hz) Apple 21" RGB.
  89.  
  90. timingInvalid                    EQU        0                    ; Unknown timing… force user to confirm.
  91. timingApple_512x384_60hz        EQU        130                    ;  512x384  (60 Hz) Rubik timing.
  92. timingApple_560x384_60hz        EQU        135                    ;  560x384  (60 Hz) Rubik-560 timing.
  93. timingApple_640x480_67hz        EQU        140                    ;  640x480  (67 Hz) HR timing.
  94. timingApple_640x400_67hz        EQU        145                    ;  640x400  (67 Hz) HR-400 timing.
  95. timingVESA_640x480_60hz            EQU        150                    ;  640x480  (60 Hz) VGA timing.
  96. timingApple_640x870_75hz        EQU        160                    ;  640x870  (75 Hz) FPD timing.
  97. timingApple_640x818_75hz        EQU        165                    ;  640x818  (75 Hz) FPD-818 timing.
  98. timingApple_832x624_75hz        EQU        170                    ;  832x624  (75 Hz) GoldFish timing.
  99. timingVESA_800x600_56hz            EQU        180                    ;  800x600  (56 Hz) SVGA timing.
  100. timingVESA_800x600_60hz            EQU        182                    ;  800x600  (60 Hz) SVGA timing.
  101. timingVESA_800x600_72hz            EQU        184                    ;  800x600  (72 Hz) SVGA timing.
  102. timingVESA_800x600_75hz            EQU        186                    ;  800x600  (75 Hz) SVGA timing.
  103. timingVESA_1024x768_60hz        EQU        190                    ; 1024x768  (60 Hz) VESA 1K-60Hz timing.
  104. timingVESA_1024x768_70hz        EQU        200                    ; 1024x768  (70 Hz) VESA 1K-70Hz timing.
  105. timingVESA_1024x768_75hz        EQU        204                    ; 1024x768  (75 Hz) VESA 1K-70Hz timing (very similar to timingApple_1024x768_75hz).
  106. timingApple_1024x768_75hz        EQU        210                    ; 1024x768  (75 Hz) Apple 19" RGB.
  107. timingApple_1152x870_75hz        EQU        220                    ; 1152x870  (75 Hz) Apple 21" RGB.
  108. timingAppleNTSC_ST                EQU        230                    ;  512x384  (60 Hz, interlaced, non-convolved).
  109. timingAppleNTSC_FF                EQU        232                    ;  640x480  (60 Hz, interlaced, non-convolved).
  110. timingAppleNTSC_STconv            EQU        234                    ;  512x384  (60 Hz, interlaced, convolved).
  111. timingAppleNTSC_FFconv            EQU        236                    ;  640x480  (60 Hz, interlaced, convolved).
  112. timingApplePAL_ST                EQU        238                    ;  640x480  (50 Hz, interlaced, non-convolved).
  113. timingApplePAL_FF                EQU        240                    ;  768x576  (50 Hz, interlaced, non-convolved).
  114. timingApplePAL_STconv            EQU        242                    ;  640x480  (50 Hz, interlaced, convolved).
  115. timingApplePAL_FFconv            EQU        244                    ;  768x576  (50 Hz, interlaced, convolved).
  116. timingVESA_1280x960_75hz        EQU        250                    ; 1280x960  (75 Hz)
  117. timingVESA_1280x1024_60hz        EQU        260                    ; 1280x1024 (60 Hz)
  118. timingVESA_1280x1024_75hz        EQU        262                    ; 1280x1024 (75 Hz)
  119. timingVESA_1600x1200_60hz        EQU        280                    ; 1600x1200 (60 Hz) VESA proposed timing.
  120. timingVESA_1600x1200_65hz        EQU        282                    ; 1600x1200 (65 Hz) VESA proposed timing.
  121. timingVESA_1600x1200_70hz        EQU        284                    ; 1600x1200 (70 Hz) VESA proposed timing.
  122. timingVESA_1600x1200_75hz        EQU        286                    ; 1600x1200 (75 Hz) VESA proposed timing.
  123. timingVESA_1600x1200_80hz        EQU        288                    ; 1600x1200 (80 Hz) VESA proposed timing (pixel clock is 216 Mhz dot clock).
  124.  
  125. ; csConnectFlags values in VDDisplayConnectInfo 
  126. kAllModesValid                    EQU        0                    ; All modes not trimmed by primary init are good close enough to try 
  127. kAllModesSafe                    EQU        1                    ; All modes not trimmed by primary init are know to be safe 
  128. kReportsTagging                    EQU        2                    ; Can detect tagged displays (to identify smart monitors) 
  129. kHasDirectConnection            EQU        3                    ; True implies that driver can talk directly to device (e.g. serial data link via sense lines) 
  130. kIsMonoDev                        EQU        4                    ; Says whether there’s an RGB (0) or Monochrome (1) connection. 
  131. kUncertainConnection            EQU        5                    ; There may not be a display (no sense lines?). 
  132. kTaggingInfoNonStandard            EQU        6                    ; Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). 
  133. kReportsDDCConnection            EQU        7                    ; Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). 
  134. kHasDDCConnection                EQU        8                    ; Card has ddc connect now. 
  135.  
  136. ; csDisplayType values in VDDisplayConnectInfo 
  137. kUnknownConnect                    EQU        1                    ; Not sure how we’ll use this, but seems like a good idea. 
  138. kPanelConnect                    EQU        2                    ; For use with fixed-in-place LCD panels. 
  139. kPanelTFTConnect                EQU        2                    ; Alias for kPanelConnect 
  140. kFixedModeCRTConnect            EQU        3                    ;  For use with fixed-mode (i.e., very limited range) displays. 
  141. kMultiModeCRT1Connect            EQU        4                    ; 320x200 maybe, 12" maybe, 13" (default), 16" certain, 19" maybe, 21" maybe 
  142. kMultiModeCRT2Connect            EQU        5                    ; 320x200 maybe, 12" maybe, 13" certain, 16" (default), 19" certain, 21" maybe 
  143. kMultiModeCRT3Connect            EQU        6                    ; 320x200 maybe, 12" maybe, 13" certain, 16" certain, 19" default, 21" certain 
  144. kMultiModeCRT4Connect            EQU        7                    ; Expansion to large multi mode (not yet used) 
  145. kModelessConnect                EQU        8                    ; Expansion to modeless model (not yet used) 
  146. kFullPageConnect                EQU        9                    ; 640x818 (to get 8bpp in 512K case) and 640x870 (these two only) 
  147. kVGAConnect                        EQU        10                    ; 640x480 VGA default -- question everything else 
  148. kNTSCConnect                    EQU        11                    ; NTSC ST (default), FF, STconv, FFconv 
  149. kPALConnect                        EQU        12                    ; PAL ST (default), FF, STconv, FFconv 
  150. kHRConnect                        EQU        13                    ; Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) 
  151. kPanelFSTNConnect                EQU        14                    ; For use with fixed-in-place LCD FSTN (aka “Supertwist”) panels 
  152. kMonoTwoPageConnect                EQU        15                    ; 1152x870 Apple color two-page display 
  153. kColorTwoPageConnect            EQU        16                    ; 1152x870 Apple B&W two-page display 
  154. kColor16Connect                    EQU        17                    ; 832x624 Apple B&W two-page display 
  155. kColor19Connect                    EQU        18                    ; 1024x768 Apple B&W two-page display 
  156.  
  157. ; csTimingFlags values in VDTimingInfoRec 
  158. kModeValid                        EQU        0                    ; Says that this mode should NOT be trimmed. 
  159. kModeSafe                        EQU        1                    ; This mode does not need confirmation 
  160. kModeDefault                    EQU        2                    ; This is the default mode for this type of connection 
  161. kModeShowNow                    EQU        3                    ; This mode should always be shown (even though it may require a confirm) 
  162. kModeNotResize                    EQU        4                    ; This mode should not be used to resize the display (eg. mode selects a different connector on card) 
  163. kModeRequiresPan                EQU        5                    ; This mode has more pixels than are actually displayed 
  164.  
  165. ; csResolutionFlags bit flags for VDResolutionInfoRec 
  166. kResolutionHasMultipleDepthSizes EQU        0                    ; Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) 
  167.  
  168. ;    Power Mode constants for VDPowerStateRec.powerState.    
  169. kAVPowerOff                        EQU        0
  170. kAVPowerStandby                    EQU        1
  171. kAVPowerSuspend                    EQU        2
  172. kAVPowerOn                        EQU        3
  173.  
  174. ;    Power Mode masks and bits for VDPowerStateRec.powerFlags.    
  175. kPowerStateNeedsRefresh            EQU        0
  176. kPowerStateNeedsRefreshMask        EQU        (1 << 0)
  177.  
  178. ; Control Codes 
  179. cscReset                        EQU        0
  180. cscKillIO                        EQU        1
  181. cscSetMode                        EQU        2
  182. cscSetEntries                    EQU        3
  183. cscSetGamma                        EQU        4
  184. cscGrayPage                        EQU        5
  185. cscGrayScreen                    EQU        5
  186. cscSetGray                        EQU        6
  187. cscSetInterrupt                    EQU        7
  188. cscDirectSetEntries                EQU        8
  189. cscSetDefaultMode                EQU        9
  190. cscSwitchMode                    EQU        10
  191. cscSetSync                        EQU        11
  192. cscUnusedCall                    EQU        127                    ; This call used to expend the scrn resource.  Its imbedded data contains more control info 
  193.  
  194. ; Status Codes 
  195. cscGetMode                        EQU        2
  196. cscGetEntries                    EQU        3
  197. cscGetPageCnt                    EQU        4
  198. cscGetPages                        EQU        4                    ; This is what C&D 2 calls it. 
  199. cscGetPageBase                    EQU        5
  200. cscGetBaseAddr                    EQU        5                    ; This is what C&D 2 calls it. 
  201. cscGetGray                        EQU        6
  202. cscGetInterrupt                    EQU        7
  203. cscGetGamma                        EQU        8
  204. cscGetDefaultMode                EQU        9
  205. cscGetCurMode                    EQU        10
  206. cscGetSync                        EQU        11
  207. cscGetConnection                EQU        12                    ; Return information about the connection to the display 
  208. cscGetModeTiming                EQU        13                    ; Return timing info for a mode 
  209. cscGetModeBaseAddress            EQU        14                    ; Return base address information about a particular mode 
  210. cscGetScanProc                    EQU        15                    ; QuickTime scan chasing routine 
  211.  
  212. ; Bit definitions for the Get/Set Sync call
  213. kDisableHorizontalSyncBit        EQU        0
  214. kDisableVerticalSyncBit            EQU        1
  215. kDisableCompositeSyncBit        EQU        2
  216. kEnableSyncOnBlue                EQU        3
  217. kEnableSyncOnGreen                EQU        4
  218. kEnableSyncOnRed                EQU        5
  219. kNoSeparateSyncControlBit        EQU        6
  220. kHorizontalSyncMask                EQU        $01
  221. kVerticalSyncMask                EQU        $02
  222. kCompositeSyncMask                EQU        $04
  223. kDPMSSyncMask                    EQU        $7
  224. kSyncOnBlueMask                    EQU        $08
  225. kSyncOnGreenMask                EQU        $10
  226. kSyncOnRedMask                    EQU        $20
  227. kSyncOnMask                        EQU        $38
  228.  
  229. ;    Power Mode constants for translating DPMS modes to Get/SetSync calls.    
  230. kDPMSSyncOn                        EQU        0
  231. kDPMSSyncStandby                EQU        1
  232. kDPMSSyncSuspend                EQU        2
  233. kDPMSSyncOff                    EQU        7
  234.  
  235. VPBlock                 RECORD    0
  236. vpBaseOffset             ds.l   1        ; offset: $0 (0)        ;Offset to page zero of video RAM (From minorBaseOS).
  237. vpRowBytes                 ds.w   1        ; offset: $4 (4)        ;Width of each row of video memory.
  238. vpBounds                 ds     Rect    ; offset: $6 (6)        ;BoundsRect for the video display (gives dimensions).
  239. vpVersion                 ds.w   1        ; offset: $E (14)        ;PixelMap version number.
  240. vpPackType                 ds.w   1        ; offset: $10 (16)
  241. vpPackSize                 ds.l   1        ; offset: $12 (18)
  242. vpHRes                     ds.l   1        ; offset: $16 (22)        ;Horizontal resolution of the device (pixels per inch).
  243. vpVRes                     ds.l   1        ; offset: $1A (26)        ;Vertical resolution of the device (pixels per inch).
  244. vpPixelType                 ds.w   1        ; offset: $1E (30)        ;Defines the pixel type.
  245. vpPixelSize                 ds.w   1        ; offset: $20 (32)        ;Number of bits in pixel.
  246. vpCmpCount                 ds.w   1        ; offset: $22 (34)        ;Number of components in pixel.
  247. vpCmpSize                 ds.w   1        ; offset: $24 (36)        ;Number of bits per component
  248. vpPlaneBytes             ds.l   1        ; offset: $26 (38)        ;Offset from one plane to the next.
  249. sizeof                     EQU *            ; size:   $2A (42)
  250.                         ENDR
  251.  
  252. ; typedef struct VPBlock     VPBlock
  253. ; typedef VPBlock             *VPBlockPtr
  254. VDEntryRecord             RECORD    0
  255. csTable                     ds.l   1        ; offset: $0 (0)        ;(long) pointer to color table entry=value, r,g,b:INTEGER
  256. sizeof                     EQU *            ; size:   $4 (4)
  257.                         ENDR
  258.  
  259. ; typedef struct VDEntryRecord  VDEntryRecord
  260. ; typedef VDEntryRecord     *VDEntRecPtr
  261. ; Parm block for SetGray control call 
  262. VDGrayRecord             RECORD    0
  263. csMode                     ds.b   1        ; offset: $0 (0)        ;Same as GDDevType value (0=color, 1=mono)
  264. filler                     ds.b   1        ; offset: $1 (1)
  265. sizeof                     EQU *            ; size:   $2 (2)
  266.                         ENDR
  267.  
  268. ; typedef struct VDGrayRecord  VDGrayRecord
  269. ; typedef VDGrayRecord         *VDGrayPtr
  270. ; Parm block for SetInterrupt call 
  271. VDFlagRecord             RECORD    0
  272. csMode                     ds.b   1        ; offset: $0 (0)
  273. filler                     ds.b   1        ; offset: $1 (1)
  274. sizeof                     EQU *            ; size:   $2 (2)
  275.                         ENDR
  276.  
  277. ; typedef struct VDFlagRecord  VDFlagRecord
  278. ; typedef VDFlagRecord         *VDFlagRecPtr
  279. ; Parm block for SetEntries control call 
  280. VDSetEntryRecord         RECORD    0
  281. csTable                     ds.l   1        ; offset: $0 (0)        ;Pointer to an array of color specs
  282. csStart                     ds.w   1        ; offset: $4 (4)        ;Which spec in array to start with, or -1
  283. csCount                     ds.w   1        ; offset: $6 (6)        ;Number of color spec entries to set
  284. sizeof                     EQU *            ; size:   $8 (8)
  285.                         ENDR
  286.  
  287. ; typedef struct VDSetEntryRecord  VDSetEntryRecord
  288. ; typedef VDSetEntryRecord     *VDSetEntryPtr
  289. ; Parm block for SetGamma control call 
  290. VDGammaRecord             RECORD    0
  291. csGTable                 ds.l   1        ; offset: $0 (0)        ;pointer to gamma table
  292. sizeof                     EQU *            ; size:   $4 (4)
  293.                         ENDR
  294.  
  295. ; typedef struct VDGammaRecord  VDGammaRecord
  296. ; typedef VDGammaRecord     *VDGamRecPtr
  297. VDBaseAddressInfoRec     RECORD    0
  298. csDevData                 ds.l   1        ; offset: $0 (0)        ; LONGINT - (long) timing mode 
  299. csDevBase                 ds.l   1        ; offset: $4 (4)        ; LONGINT - (long) base address of the mode 
  300. csModeReserved             ds.w   1        ; offset: $8 (8)        ; INTEGER - (short) will some day be the depth 
  301. csModeBase                 ds.l   1        ; offset: $A (10)        ; LONGINT - (long) reserved 
  302. sizeof                     EQU *            ; size:   $E (14)
  303.                         ENDR
  304.  
  305. ; typedef struct VDBaseAddressInfoRec  VDBaseAddressInfoRec, *VDBaseAddressInfoPtr
  306. VDSwitchInfoRec         RECORD    0
  307. csMode                     ds.w   1        ; offset: $0 (0)        ;(word) mode depth
  308. csData                     ds.l   1        ; offset: $2 (2)        ;(long) functional sResource of mode
  309. csPage                     ds.w   1        ; offset: $6 (6)        ;(word) page to switch in
  310. csBaseAddr                 ds.l   1        ; offset: $8 (8)        ;(long) base address of page (return value)
  311. csReserved                 ds.l   1        ; offset: $C (12)        ;(long) Reserved (set to 0) 
  312. sizeof                     EQU *            ; size:   $10 (16)
  313.                         ENDR
  314.  
  315. ; typedef struct VDSwitchInfoRec  VDSwitchInfoRec
  316. ; typedef VDSwitchInfoRec     *VDSwitchInfoPtr
  317. VDTimingInfoRec         RECORD    0
  318. csTimingMode             ds.l   1        ; offset: $0 (0)        ; LONGINT - (long) timing mode (a la InitGDevice) 
  319. csTimingReserved         ds.l   1        ; offset: $4 (4)        ; LONGINT - (long) reserved 
  320. csTimingFormat             ds.l   1        ; offset: $8 (8)        ; LONGINT - (long) what format is the timing info 
  321. csTimingData             ds.l   1        ; offset: $C (12)        ; LONGINT - (long) data supplied by driver 
  322. csTimingFlags             ds.l   1        ; offset: $10 (16)        ; LONGINT - (long) mode within device 
  323. sizeof                     EQU *            ; size:   $14 (20)
  324.                         ENDR
  325.  
  326. ; typedef struct VDTimingInfoRec  VDTimingInfoRec
  327. ; typedef VDTimingInfoRec     *VDTimingInfoPtr
  328. VDDisplayConnectInfoRec RECORD    0
  329. csDisplayType             ds.w   1        ; offset: $0 (0)        ; INTEGER - (word) Type of display connected 
  330. csConnectTaggedType         ds.b   1        ; offset: $2 (2)        ; BYTE - type of tagging 
  331. csConnectTaggedData         ds.b   1        ; offset: $3 (3)        ; BYTE - tagging data 
  332. csConnectFlags             ds.l   1        ; offset: $4 (4)        ; LONGINT - (long) tell us about the connection 
  333. csDisplayComponent         ds.l   1        ; offset: $8 (8)        ; LONGINT - (long) if the card has a direct connection to the display, it returns the display component here (FUTURE) 
  334. csConnectReserved         ds.l   1        ; offset: $C (12)        ; LONGINT - (long) reserved 
  335. sizeof                     EQU *            ; size:   $10 (16)
  336.                         ENDR
  337.  
  338. ; typedef struct VDDisplayConnectInfoRec  VDDisplayConnectInfoRec
  339. ; typedef VDDisplayConnectInfoRec  *VDDisplayConnectInfoPtr
  340. ; RawSenseCode
  341. ;    This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  342. ;    for the possible raw sense code values when 'standard' sense code hardware is implemented.
  343. ;
  344. ;    For 'standard' sense code hardware, the raw sense is obtained as follows:
  345. ;        • Instruct the frame buffer controller NOT to actively drive any of the monitor sense lines
  346. ;        • Read the state of the monitor sense lines 2, 1, and 0.  (2 is the MSB, 0 the LSB)
  347. ;
  348. ;    IMPORTANT Note: 
  349. ;    When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  350. ;    are valid 'csConnectTaggedType' values in 'VDDisplayConnectInfo' 
  351. ;
  352. ;
  353. ; typedef unsigned char     RawSenseCode
  354.  
  355. kRSCZero                        EQU        0
  356. kRSCOne                            EQU        1
  357. kRSCTwo                            EQU        2
  358. kRSCThree                        EQU        3
  359. kRSCFour                        EQU        4
  360. kRSCFive                        EQU        5
  361. kRSCSix                            EQU        6
  362. kRSCSeven                        EQU        7
  363.  
  364. ; ExtendedSenseCode
  365. ;    This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  366. ;    for the values which are possible when the extended sense algorithm is applied to hardware
  367. ;    which implements 'standard' sense code hardware.
  368. ;
  369. ;     For 'standard' sense code hardware, the extended sense code algorithm is as follows:
  370. ;    (Note:  as described here, sense line 'A' corresponds to '2', 'B' to '1', and 'C' to '0')
  371. ;        • Drive sense line 'A' low and read the values of 'B' and 'C'.  
  372. ;        • Drive sense line 'B' low and read the values of 'A' and 'C'.
  373. ;        • Drive sense line 'C' low and read the values of 'A' and 'B'.
  374. ;
  375. ;    In this way, a six-bit number of the form BC/AC/AB is generated. 
  376. ;
  377. ;    IMPORTANT Note: 
  378. ;    When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  379. ;    are valid 'csConnectTaggedData' values in 'VDDisplayConnectInfo' 
  380. ;
  381. ;
  382. ; typedef unsigned char     ExtendedSenseCode
  383.  
  384. kESCZero21Inch                    EQU        $00                    ; 21" RGB                                 
  385. kESCOnePortraitMono                EQU        $14                    ; Portrait Monochrome                     
  386. kESCTwo12Inch                    EQU        $21                    ; 12" RGB                                
  387. kESCThree21InchRadius            EQU        $31                    ; 21" RGB (Radius)                        
  388. kESCThree21InchMonoRadius        EQU        $34                    ; 21" Monochrome (Radius)                 
  389. kESCThree21InchMono                EQU        $35                    ; 21" Monochrome                        
  390. kESCFourNTSC                    EQU        $0A                    ; NTSC                                 
  391. kESCFivePortrait                EQU        $1E                    ; Portrait RGB                         
  392. kESCSixMSB1                        EQU        $03                    ; MultiScan Band-1 (12" thru 1Six")    
  393. kESCSixMSB2                        EQU        $0B                    ; MultiScan Band-2 (13" thru 19")        
  394. kESCSixMSB3                        EQU        $23                    ; MultiScan Band-3 (13" thru 21")        
  395. kESCSixStandard                    EQU        $2B                    ; 13"/14" RGB or 12" Monochrome        
  396. kESCSevenPAL                    EQU        $00                    ; PAL                                    
  397. kESCSevenNTSC                    EQU        $14                    ; NTSC                                 
  398. kESCSevenVGA                    EQU        $17                    ; VGA                                     
  399. kESCSeven16Inch                    EQU        $2D                    ; 16" RGB (GoldFish)                      
  400. kESCSevenPALAlternate            EQU        $30                    ; PAL (Alternate)                         
  401. kESCSeven19Inch                    EQU        $3A                    ; Third-Party 19”                        
  402. kESCSevenNoDisplay                EQU        $3F                    ; No display connected                 
  403.  
  404. ; DepthMode
  405. ;    This abstract data type is used to to reference RELATIVE pixel depths.
  406. ;    Its definition is largely derived from its past usage, analogous to 'xxxVidMode'
  407. ;
  408. ;    Bits per pixel DOES NOT directly map to 'DepthMode'  For example, on some
  409. ;    graphics hardware, 'kDepthMode1' may represent 1 BPP, whereas on other
  410. ;    hardware, 'kDepthMode1' may represent 8BPP.
  411. ;
  412. ;    DepthMode IS considered to be ordinal, i.e., operations such as <, >, ==, etc.
  413. ;    behave as expected.  The values of the constants which comprise the set are such
  414. ;    that 'kDepthMode4 < kDepthMode6' behaves as expected.
  415. ;
  416. ; typedef unsigned short     DepthMode
  417.  
  418. kDepthMode1                        EQU        128
  419. kDepthMode2                        EQU        129
  420. kDepthMode3                        EQU        130
  421. kDepthMode4                        EQU        131
  422. kDepthMode5                        EQU        132
  423. kDepthMode6                        EQU        133
  424.  
  425. kFirstDepthMode                    EQU        128                    ; These constants are obsolete, and just included    
  426. kSecondDepthMode                EQU        129                    ; for clients that have converted to the above        
  427. kThirdDepthMode                    EQU        130                    ; kDepthModeXXX constants.                            
  428. kFourthDepthMode                EQU        131
  429. kFifthDepthMode                    EQU        132
  430. kSixthDepthMode                    EQU        133
  431.  
  432. VDPageInfo                 RECORD    0
  433. csMode                     ds.w   1        ; offset: $0 (0)        ;(word) mode within device
  434. csData                     ds.l   1        ; offset: $2 (2)        ;(long) data supplied by driver
  435. csPage                     ds.w   1        ; offset: $6 (6)        ;(word) page to switch in
  436. csBaseAddr                 ds.l   1        ; offset: $8 (8)        ;(long) base address of page
  437. sizeof                     EQU *            ; size:   $C (12)
  438.                         ENDR
  439.  
  440. ; typedef struct VDPageInfo  VDPageInfo
  441. ; typedef VDPageInfo         *VDPgInfoPtr
  442. VDSizeInfo                 RECORD    0
  443. csHSize                     ds.w   1        ; offset: $0 (0)        ;(word) desired/returned h size
  444. csHPos                     ds.w   1        ; offset: $2 (2)        ;(word) desired/returned h position
  445. csVSize                     ds.w   1        ; offset: $4 (4)        ;(word) desired/returned v size
  446. csVPos                     ds.w   1        ; offset: $6 (6)        ;(word) desired/returned v position
  447. sizeof                     EQU *            ; size:   $8 (8)
  448.                         ENDR
  449.  
  450. ; typedef struct VDSizeInfo  VDSizeInfo
  451. ; typedef VDSizeInfo         *VDSzInfoPtr
  452. VDSettings                 RECORD    0
  453. csParamCnt                 ds.w   1        ; offset: $0 (0)        ;(word) number of params
  454. csBrightMax                 ds.w   1        ; offset: $2 (2)        ;(word) max brightness
  455. csBrightDef                 ds.w   1        ; offset: $4 (4)        ;(word) default brightness
  456. csBrightVal                 ds.w   1        ; offset: $6 (6)        ;(word) current brightness
  457. csCntrstMax                 ds.w   1        ; offset: $8 (8)        ;(word) max contrast
  458. csCntrstDef                 ds.w   1        ; offset: $A (10)        ;(word) default contrast
  459. csCntrstVal                 ds.w   1        ; offset: $C (12)        ;(word) current contrast
  460. csTintMax                 ds.w   1        ; offset: $E (14)        ;(word) max tint
  461. csTintDef                 ds.w   1        ; offset: $10 (16)        ;(word) default tint
  462. csTintVal                 ds.w   1        ; offset: $12 (18)        ;(word) current tint
  463. csHueMax                 ds.w   1        ; offset: $14 (20)        ;(word) max hue
  464. csHueDef                 ds.w   1        ; offset: $16 (22)        ;(word) default hue
  465. csHueVal                 ds.w   1        ; offset: $18 (24)        ;(word) current hue
  466. csHorizDef                 ds.w   1        ; offset: $1A (26)        ;(word) default horizontal
  467. csHorizVal                 ds.w   1        ; offset: $1C (28)        ;(word) current horizontal
  468. csHorizMax                 ds.w   1        ; offset: $1E (30)        ;(word) max horizontal
  469. csVertDef                 ds.w   1        ; offset: $20 (32)        ;(word) default vertical
  470. csVertVal                 ds.w   1        ; offset: $22 (34)        ;(word) current vertical
  471. csVertMax                 ds.w   1        ; offset: $24 (36)        ;(word) max vertical
  472. sizeof                     EQU *            ; size:   $26 (38)
  473.                         ENDR
  474.  
  475. ; typedef struct VDSettings  VDSettings
  476. ; typedef VDSettings         *VDSettingsPtr
  477. VDDefMode                 RECORD    0
  478. csID                     ds.b   1        ; offset: $0 (0)
  479. filler                     ds.b   1        ; offset: $1 (1)
  480. sizeof                     EQU *            ; size:   $2 (2)
  481.                         ENDR
  482.  
  483. ; typedef struct VDDefMode     VDDefMode
  484. ; typedef VDDefMode         *VDDefModePtr
  485. VDSyncInfoRec             RECORD    0
  486. csMode                     ds.b   1        ; offset: $0 (0)
  487. csFlags                     ds.b   1        ; offset: $1 (1)
  488. sizeof                     EQU *            ; size:   $2 (2)
  489.                         ENDR
  490.  
  491. ; typedef struct VDSyncInfoRec  VDSyncInfoRec
  492. ; typedef VDSyncInfoRec     *VDSyncInfoPtr
  493.     ENDIF ; __VIDEO__
  494.